package com.tony.service.impl;

import com.tony.dao.ArticleDao;
import com.tony.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Tony on 2017/1/4.
 */
@Component
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleDao articleDao;

    public boolean postArticle(String user, String title, String link) {
        return articleDao.postArticle("tony",title,link);
    }
}
